
..\Release\mot2bin.exe -o km471ew_sys.bin -s 1C078500 -z -m A9B00 -i .\km471ew\Debug\km471ew.mot
if not errorlevel 0 goto error

..\Release\mot2bin.exe -o km471ew_media.bin -s 18100000 -e 1C078500 -z -i .\km471ew\Debug\km471ew.mot
if not errorlevel 0 goto error

copy /B km471ew_sys.bin+km471ew_media.bin audio_temp.bin

..\Release\bin2mot.exe -o km471ew_temp.mot -i audio_temp.bin
if not errorlevel 0 goto error

..\Release\mot2bin.exe -o audio.bin -i km471ew_temp.mot -z -c
if not errorlevel 0 goto error

copy /B usb_upgrade_header.txt+audio.bin km471ew.bin

del km471ew_sys.bin
del km471ew_media.bin
del audio_temp.bin
del km471ew_temp.mot
del audio.bin

echo make km471ew.bin ok !!!
goto end

:error
echo make km471ew.bin error !!!

:end

pause
